// import TableItemSwitch from './tableItemSwitch.vue'

import { h } from 'vue';

export const columns = [
  {
    title: '用户ID',
    key: 'userId',
    width: 100,
  },
  {
    title: '姓名',
    key: 'name',
    width: 100,
  },
  {
    title: '主播',
    key: 'isAnchor',
    width: 80,
    render(row) {
      return h(
        'span',
        { style: row.isAnchor == 1 ? 'color:orange' : '' },
        {
          default: () => (row.isAnchor == 1 ? '是' : '否'),
        }
      );
    },
  },
  {
    title: '角色id',
    key: 'roleId',
    width: 200,
  },
  {
    title: '角色名称',
    key: 'roleName',
    width: 200,
  },
  {
    title: '注册渠道',
    key: 'chanName',
    width: 200,
  },
  {
    title: '角色等级',
    key: 'gRoleLevel',
    width: 100,
  },
  {
    title: '玩家区服',
    key: 'gAreaName',
    width: 100,
  },
  {
    title: '累计提现金额',
    key: 'totalAmount',
    width: 200,
    render(row) {
      return h(
        'span',
        { style: 'color:red' },
        {
          default: () => (row.totalAmount),
        }
      );
    },
  },
  {
    title: '最后登录时间',
    key: 'lastLoginTime',
    width: 200,
  },
  {
    title: '最后提现时间',
    key: 'lastReflectTime',
    width: 200,
  },
];
